package com.jiaotong.jiaohangweb.controller;


import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.jiaotong.common.entity.UserInfo;
import com.jiaotong.jiaohangweb.service.UserInfoService;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import java.time.LocalDateTime;
import java.util.List;

/**
 * <p>
 * 用户信息表 前端控制器
 * </p>
 *
 * @author dongyuefeng
 * @since 2020-08-06
 */
@RestController
@RequestMapping("/jiaohangweb/user-info")
public class UserInfoController {
	@Autowired
	private UserInfoService userInfoService;
	@ApiOperation(value = "2.3.01我的理财-主界面")
	@PostMapping("save")
	public Object getUser() {
		LambdaQueryWrapper<UserInfo> userInfoLambdaQueryWrapper = new LambdaQueryWrapper<UserInfo>();
		userInfoLambdaQueryWrapper.eq(UserInfo::getWxOpenId, "1");
		List<UserInfo> save = userInfoService.list(userInfoLambdaQueryWrapper);
		return save;
	}

}
